// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   quranPage.java

package app;

import java.util.Vector;
import javax.microedition.lcdui.Graphics;
import ui.*;

// Referenced classes of package app:
//            ChoiceElement

public class mPage extends Page
{

    public mPage(BrowserCanvas canvas, String url, PageListener listener)
    {
        //super(canvas, canvas.getPageWidth(), canvas.getPageHeight());
        super(canvas, canvas.getPageWidth(), canvas.getPageHeight());
        this.url = url;
        setListener(listener);
        super.right_menu = "Kembali";
        super.bgcolor = 0;


        Vector v = new Vector();
        v.addElement("Ayat AlQuran");
        v.addElement("Keluar");
        super.left_menu = new MenuBar("Menu", listener, v, this);

    }

    protected void drawPage(Graphics g, int left, int startY, int stopY)
    {
        // draw bg
        //g.drawImage(BrowserCanvas.imgbg, left - 25, startY, 20);
        g.drawImage(BrowserCanvas.imgbg, 0, 0, Graphics.TOP|Graphics.LEFT);
        super.drawPage(g, left, startY, stopY);
    }

    public void setMenu(MenuBar menuIndex)
    {
        super.left_menu = menuIndex;
    }

    public Element getSelectedItem()
    {
        if(super.selected >= 0)
            return (Element)super.items.elementAt(super.selected);
        else
            return null;
    }

    public int[] getSelectedChoise()
    {
        /*
        Vector v = new Vector();
        for(int i = 0; i < super.items.size(); i++)
            if(super.items.elementAt(i) instanceof ChoiceElement)
                v.addElement(new Integer(((ChoiceElement)super.items.elementAt(i)).getChoice()));

        if(v.size() == 0)
            return null;
        int ret[] = new int[v.size()];
        for(int j = 0; j < v.size(); j++)
            ret[j] = ((Integer)v.elementAt(j)).intValue();

        return ret;
         */
        return null;
    }

    public String url;
}
